<p class="P2"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Push Button</span> icon in the <span class="T1">Form Functions</span> floating toolbar. The pointer will change to a cross-hair symbol.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/>In the document, drag open a box representing the size and position of the command button you want to insert.</p>
<p class="P2"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>The new button is selected.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="79" xmlns:help="http://openoffice.org/2000/help"/>To select a button, click on the edge, where the mouse pointer appears with a cross with four arrows, or keep the <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">Option</help:case><help:default>Alt</help:default></help:switch> key pressed.</p>
</li>
</ol>
<p class="Paragraph"><help:paragraphinfo state="U" number="80" xmlns:help="http://openoffice.org/2000/help"/>You can move and scale a selected button like a graphic. You can open dialogs for editing properties through the context menu for the button.</p>
<ul class="L2">
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>Select the <span class="T1">Control</span> command from the context menu of the selected button to access the <span class="T1">Properties: Button</span> dialog. You can also call this dialog by clicking the <span class="T1">Control Properties</span> icon contained in the <span class="T1">Form Functions</span> floating toolbar.</p>
<p class="P4"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>You can change the text on the button under <span class="T1">General -Title</span>.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>Use the <span class="T1">Events</span> tab if you would like to run a macro when the button has been clicked. Click the<span class="T1"> ... </span>button at the right to access a selection dialog for macros.</p>
<p class="P5"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>The <span class="T1">Event</span> list box contains all possible events to which a control can react. Select the macro will run when the button is clicked, and then confirm your selection by clicking the <span class="T1">Assign</span> button.</p>
</li>
<li class="">
<p class="P5"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>End the design mode using the icon on the <span class="T1">Form Functions</span> floating toolbar. If you now click on your button in the document (not on the edge), the assigned macro will run.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="76" xmlns:help="http://openoffice.org/2000/help"/>In addition to the properties of the selected controls, you also can control the properties of the form to which the control belongs. Click the <span class="T1">Form Function</span> floating toolbar on the <span class="T1">Form properties</span> icon.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>The other icons on the <span class="T1">Form Functions</span> floating toolbar serve to define interactive documents. In <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic you can also define your own dialogs - for this purpose, there are other controls for dialogs available to you in the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic IDE.</p>